package com.kirayous.gulimall.ware;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author KiraYous
 * @version V1.0
 * @Package com.kirayous.gulimall.ware
 * @date 2021/9/1 16:08
 */
@EnableRabbit
@EnableFeignClients
@EnableDiscoveryClient
//要开启@EnableTransactionManagement，@Transactional才生效
@EnableTransactionManagement
@MapperScan("com.kirayous.gulimall.ware.dao")
@SpringBootApplication
public class GuliMallWareApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuliMallWareApplication.class, args);
    }

}